package com.yuw.dz.oop;

import com.yuw.dz.fun.Person;

public class Teacher2 extends Person {

    /**
     * 考试行为
     *
     * @param examName 考试科目(形参)
     */
    public double doExaming(String examName) {
        // 非同包的子类可以继承父类的protected属性
        String str = this.perName;
        System.out.println("I am examing " + examName);
        double score = 90.5;
        // 返回结果
        return score;
    }
}
